import request from '@/config/axios'

// 手机号变更记录 VO
export interface PhoneRecordVO {
  id: number // ID
}

// 手机号变更记录 API
export const PhoneRecordApi = {
  // 查询手机号变更记录分页
  getPhoneRecordPage: async (params: any) => {
    return await request.get({ url: `/wo/phone-record/page`, params })
  },

  // 查询手机号变更记录详情
  getPhoneRecord: async (id: number) => {
    return await request.get({ url: `/wo/phone-record/get?id=` + id })
  },

  // 新增手机号变更记录
  createPhoneRecord: async (data: PhoneRecordVO) => {
    return await request.post({ url: `/wo/phone-record/create`, data })
  },

  // 修改手机号变更记录
  updatePhoneRecord: async (data: PhoneRecordVO) => {
    return await request.put({ url: `/wo/phone-record/update`, data })
  },

  // 删除手机号变更记录
  deletePhoneRecord: async (id: number) => {
    return await request.delete({ url: `/wo/phone-record/delete?id=` + id })
  },

  // 导出手机号变更记录 Excel
  exportPhoneRecord: async (params) => {
    return await request.download({ url: `/wo/phone-record/export-excel`, params })
  }
}